package com.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2023-10-27
 * Time: 22:47
 */
public class App1 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
        BeanLifeController beanLifeController = context.getBean("beanlifeController", BeanLifeController.class);
        System.out.println("执行 main 方法");
        beanLifeController.preDestroy();
    }
}
